package com.meitianhui.convenitenbuy;

/**
 * 公共常量
 */
public class Constants {

    public static String HOST = "https://t-appportal.meitianhui.com/openapi/";
    public static String FILE_HOST = "https://t-appportal.meitianhui.com/";//用户图片存储路径
    // public static final String HOST = "http://172.16.20.246:8080/";
    // public static String HOST = "https://appportal.meitianhui.com/openapi/";//外网
    // public static final String FILE_HOST = "https://appportal.meitianhui.com/";

    // 正式的appID
    // public static final String APP_ID = "c1ec052c-e5df-44b2-baa6-e88527aa2e03";
    // 正式的appKey
    // public static final String PRIVATE_KEY = "d679a929959e4f0093051b7d7d732ed61e4e8ee3b23047429e72b845b506bfa1";

    //测试的appID
    public static String APP_ID = "bcc1cf2e-b376-11e5-921c-fcaa1490ccaf";
    //测试的appKey
    public static String PRIVATE_KEY = "690b98fcb37711e5921cfcaa1490ccaf717130d1b37711e5921cfcaa1490ccaf";   //测试的appid
    //本地缓存key
    public static final String APP_TOKEN_KEY = "APP_TOKEN_KEY";    //app_token
    public static final String APP_SECURITY_CODE = "APP_SECURITY_CODE";  //security_code
    //包名
    public static final String PACKAGE_NAME = "com.meitianhui.convenitenbuy";
    //版本名
    public static final String VERSION_CODE_KEY = "VERSION_CODE_KEY";

    public static final String USER_TOKEN = "USER_TOKEN";   //用户数据的对象

    public static final String USER_INFO = "USER_INFO_BEAN";   //用户信息
    public static final String CONSUMER_INFO = "CONSUMER_INFO";   //消费者信息
    public static final String HYPHENATE_INFO = "HYPHENATE_INFO";   //用户环信的信息
    public static final String USER_ASSET = "USER_ASSET";   //用户资产
    public static final String DEFAULT_STORE_ID = "DEFAULT_STORE_ID";  //默认门店ID
    public static final String DEFAULT_STORE_NAME = "DEFAULT_STORE_NAME"; //默认门店名字
    public static final String USER_RECEIVING_ADDRESS = "USER_RECEIVING_ADDRESS"; //用户地址
    public static final String USER_RECOMMENDER_NUMBER = "USER_RECOMMENDER_NUMBER"; //用户推荐人
    public static final String USER_COLLECT_STORE = "USER_COLLECT_STORE"; //用户推荐人

    public static final String LOGIN_STATUS = "LOGIN_STATUS";  //登录标识    1.登录成功

    public static final int DIALOG_MESSAGE_TEXTSIZE = 16;//弹窗框提示信息文字大小

    public static final String INTENT_FLAG_SOURCE = "INTENT_FLAG_SOURCE";//activity启动来源

    //环信聊天发送给消息人信息
    public static final String HYPHENATE_TITLE = "官方客服";  //姓名
    public static final String HYPHENATE_ID_HOME_SERVICE = "bendishenghuoserviceagent";    //宅急送
    public static final String HYPHENATE_ID_FIGHT_GROUP = "hptcustomerserviceagent";    //拼团
    public static final String HYPHENATE_ID_EDINBURGH = "llmcustomerserviceagent";     //淘淘
    public static final String HYPHENATE_ID_BRAND = "mphcustomerserviceagent";    //品牌
    public static final String HYPHENATE_ID_STORE = "23be9de49d3241649122cabacd6758c5";    //店铺

    public static final int CHATTYPE_SINGLE = 1;
    public static final int CHATTYPE_GROUP = 2;
    public static final int CHATTYPE_CHATROOM = 3;


    public static final String MEMBER_TYPE_KEY = "consumer";


    public static final int BANNER_TIME = 4000;   //banner轮播时间

    //百度定位保存的经纬度 城市
    public static final String LATITUDE = "LATITUDE";    //纬度
    public static final String LONGITUDE = "LONGITUDE";  //纬度
    public static final String CITY = "CITY";   //城市
    public static final String DISTRICT = "DISTRICT";  //地区
    public static final String AREA_CODE = "AREA_CODE";  //区域号码
    /**
     * Wallet module
     */
    public static final int WALLET_PAYMENT_SETTING_WRONG = 0;
    public static final int WALLET_PAYMENT_SETTING_SUCCESS = 1;
    public static final int WALLET_PAYMENT_SETTING_ERROR = 2;
    public static final int WALLET_PAYMENT_SETTING_FAIL = 3;
    public static final int WALLET_PAYMENT_SETTING_EMPTY = 4;
    public static final String ARGUMENT = "argument";


    //点击用户信息的条目
    public static final int CLICK_USER_NICKNAME = 1;
    public final static int CLICK_USER_NAME = 2;
    public final static int CLICK_USER_SEX = 3;
    public final static int CLICK_USER_BIRTHDAY = 4;
    public final static int CLICK_USER_PHOTO = 5;
    //用户反馈
    public static final String CATEGORY_PROPOSE = "propose";

    /**
     * 性别男
     */
    public static final String SEX_MAN_KEY = "XBDM_01";
    /**
     * 性别女
     */
    public static final String SEX_WOMAN_KEY = "XBDM_02";
    /**
     * 性别保密
     */
    public static final String SEX_PRIVATE_KEY = "XBDM_03";
    //设置支付密码
    public static final String PASSWORD_UNSELECT = "N";
    public static final String PASSWORD_SELECT = "Y";

    //平台来源
    public static final String CUSTOM_APP = "SJLY_01";
    public static final String SELLER_ID = "10000001";
    public static final String BUYER_ID = "10000001";


    //支付宝支付
    public static final String ALIPAY_APY = "ZFFS_01";
    //微信
    public static final String WECHAT_APY = "ZFFS_02";
    //免单券
    public static final String MIANDANQUAN_APY = "ZFFS_19";
    //惠支付
    public static final String PAYMENT_WAY_05 = "ZFFS_05";
    //礼券
    public static final String PAYMENT_WAY_06 = "ZFFS_06";
    //积分
    public static final String PAYMENT_WAY_09 = "ZFFS_09";

    //订单类型
    public static final String ORDER_TYPE_KEY_ZY = "DDLX_07";//自营
    public static final String ORDER_TYPE_KEY_HG = "DDLX_21";//会过



    //微信APPID
    public static final String WX_APP_ID = "wx2ba2ecd5b368be10";
    //微信AppSecret
    public static final String WX_AppSecret = "b9e01d5e8633d835d63a9ef2a940b76a";
    //QQ_ID
    public static final String QQ_ID = "1105369340";
    //APP_KEY
    public static final String QQ_KEY = "nve0dtuBz2cdA5jg";

    //小程序的原始ID
    public static final String WX_MINI_ID = "gh_a7660861b481";


    /**
     * 已支付
     **/
    public static final String PC__ORDER_PAYED = "payed";
    /**
     * 已支付(伙拼团)
     **/
    public static final String PC__ORDER_PAYED_HPT = "paid";
    /**
     * 已发货
     **/
    public static final String PC_ORDER_DELIVERED = "delivered";
    /**
     * 已到货
     **/
    public static final String PC_ORDER_ARRIVED = "arrived";

    /**
     * 已收货
     **/
    public static final String PC__ORDER_RECEIVED = "received";
    /**
     * 订单取消
     **/
    public static final String PC__ORDER_CANCELLED = "cancelled";
    /**
     * 订单完成
     **/
    public static final String PC__ORDER_CLOSED = "closed";
    /**
     * 处理中
     **/
    public static final String PC__ORDER_PROCESSING = "processing";
    /**
     * 订单确定
     **/
    public static final String PC__ORDER_CONFIRMED = "confirmed";
    /**
     * 配送中
     **/
    public static final String PC__ORDER_ASSIGNED = "assigned";

    /**
     * EventBean type 用于事件通知
     */
    public static int EVENT_TYPE_REFRESH = 0;//刷新界面 钱包
    public static int EVENT_TYPE_ORDER_OPERATION = 1;  //订单的操作成功还是失败
    public static int EVENT_TYPE_FINISH = 2;  //订单的操作成功还是失败
    public static int EVENT_TYPE_FAMILY_CARD_UPDATE = 3;  //订单的操作成功还是失败
    public static int EVENT_TYPE_CAR_ADD = 4;  //购物车添加更新
    public static int EVENT_TYPE_CAR_RETURN = 5; //购物车返回更新
    public static int EVENT_TYPE_LOGIN_SUCCESS = 6; //登录成功
    public static int EVENT_TYPE_ADV_CLOSE_REDPACKET_SHOW = 7; //广告链接页面的关闭要通知关闭红包和广告

    /**
     * PushBean type 用于接收后台推送消息
     */
    public static String PUSH_TYPE_SCAN_PAY_SUCCESS = "1";//扫码支付成功
    public static String PUSH_TYPE_UNFREEZE_SUCCESS = "2";//解冻成功
    /**
     * PayResultBean type 用于支付结果
     */
    public static int PAY_RESULT_SUCCESS = 0;//支付成功
    public static int PAY_RESULT_FAIL = 1;//支付失败
    public static int  PAY_RESULT_FAIL_HUIGUO = 30;//会过的支付失败 跳转到会过的订单页面
    public static int  PAY_RESULT_FAIL_ZIYING = 40;//自营的支付失败 跳转到会过的订单页面

    public static int PAY_FIGHT_GROUP_SUCCESS = 2;   //拼团领支付成功
    /**
     * AddressEventBean Type
     */
    public static int ADDRESS_NOTIFY_RA_ACTIVITY = 8888888;
    public static int ADDRESS_NOTIFY_RA_MAJOR_ADDRESS = 8888887;

    /**
     * 退出
     */
    public static int EXIT_HYPHENATE_EVENT = 0001;
    /**
     *
     */
    public static final String COLLECT_MENU_CANCLE = "COLLECT_MENU_CANCLE";
    public static final String COLLECT_MENU_COMFIRM = "COLLECT_MENU_COMFIRM";
    public static final String COLLECT_FROM_MYfRAGMENT = "COLLECT_FROM_MYfRAGMENT";
    public static final String SYSTEM_NOTIFY = "SYSTEM_NOTIFY";

    //SKU 商品状态 激活
    public static final String SKU_STATUS_ACTIVATED = "activated";
    //SKU 商品状态 验证
    public static final String SKU_STATUS_VERIFIED = "verified";
    //SKU 商品状态 过期作废
    public static final String SKU_STATUS_REVOKED = "revoked";

    public static final String CONS_CASH = "a30b4937-0474-11e6-b922-fcaa1490ccaf";//现金购买
    public static final String CONS_LIQUAN = "a865d8cf-0474-11e6-b922-fcaa1490ccaf";//礼券兑换
    public static final String CONS_FREE = "ac3446f0-0474-11e6-b922-fcaa1490ccaf";//免费领取

    public static final int FAILED = 0;
    public static final int FAILED_No_NET = 1;
    public static final int FAILED_SERVER_EXCEPTION = 2;

    //免密支付金额
    public static final float SMALL_AMOUNT = 100.0F;

    //跳转支付类型
    public static final String TYPE_COUPON = "X_01";//优惠券跳转至购买页
    public static final String TYPE_ONE_BUY = "X_02";//一元购(H5)跳转至购买页
    public static final String TYPE_GOLD_BUY = "X_03";//品牌领 中一元购  (H5)跳转至购买页

    public static final String TYPE_HUIGUO = "huiguo";//会过
    public static final String TYPE_MEITIANHUI = "meitianhui";//每天惠自营

    // 如果是商品详情页面分享就显示小程序分享 其他的就不显示
    public static final String TYPE_GOOD_DETAIL_PAGE = "TYPE_GOOD_DETAIL_PAGE ";
    public static final String TYPE_NO_SHOW_WXMINI_SHARE = "TYPE_NO_SHOW_WXMINI_SHARE ";

}
